﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public static class GlobalValues
    {
        public static void RefreshValues()
        {
            _UserID = -1;
            _UserName = string.Empty;
            _IsAdmin = false;
            _Departments = new int[] { };
        }

        private static int _UserID = -1;
        public static int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }

        private static string _UserName = string.Empty;
        public static string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }

        private static bool _IsAdmin = false;
        public static bool IsAdmin
        {
            get { return _IsAdmin; }
            set { _IsAdmin = value; }
        }

        private static int[] _Departments = new int[] { };
        public static int[] Departments
        {
            get { return _Departments; }
            set { _Departments = value; }
        }
    }
}
